//
//  CustHight.m
//  电影er
//
//  Created by dllo on 16/6/24.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CustHight.h"

@implementation CustHight

+(CGFloat)heightWithTime:(NSString *)text{
    NSDictionary *attrodoc = @{
                               NSFontAttributeName :[UIFont systemFontOfSize:20]
                               
                               };
    
    CGRect rect = [text boundingRectWithSize:CGSizeMake([UIScreen mainScreen].bounds.size.width, 1000) options:NSStringDrawingUsesLineFragmentOrigin attributes:attrodoc context:nil];
    return rect.size.height;
}
@end
